c program to check whether triangle is valid or not if sides are given